<%@ page import="com.po.Users" %><%--
  Created by IntelliJ IDEA.
  User: asus
  Date: 2019/12/15
  Time: 18:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>测试scope</title>
</head>
<body>
<jsp:useBean id="myUsers" scope="application" class="com.po.Users"></jsp:useBean>
<h1>测试四种Scope</h1>
用户名:<jsp:getProperty name="myUsers" property="userName"></jsp:getProperty><br>
密码:<jsp:getProperty name="myUsers" property="passWord"></jsp:getProperty><br>
用户名:<%=((Users)application.getAttribute("myUsers")).getUserName()%><br>
密码:<%=((Users)application.getAttribute("myUsers")).getPassWord()%>
</body>
</html>
